package com.lightdz.tshirtdz.model.entity;

import java.sql.Timestamp;
import java.util.Objects;

/**
 * @ Description：${description}
 * @ Author     ：zbl
 * @ Date       ：Created in 10:09 10/08/2018
 * @ Modified By：
 */

public class ReceiveAddrEntity {
    private int tid;
    private String wxid;
    private String receiveaddr;
    private int status;
    private Timestamp createtime;
    private Timestamp updatetime;
    private String receivetel;
    private Integer isdefault;
    private String regionaddr;
    private String streetaddress;
    private String receiver;

    public String getRegionAddr() {
        return regionaddr;
    }

    public void setRegionAddr(String regionAddr) {
        this.regionaddr = regionAddr;
    }

    public String getStreetAddr() {
        return streetaddress;
    }

    public void setStreetAddr(String streetAddr) {
        this.streetaddress = streetAddr;
    }

    public String getReceiver() {
        return receiver;
    }

    public void setReceiver(String receiver) {
        this.receiver = receiver;
    }

    public int getTid() {
        return tid;
    }

    public void setTid(int tid) {
        this.tid = tid;
    }

    public String getWxid() {
        return wxid;
    }

    public void setWxid(String wxid) {
        this.wxid = wxid;
    }

    public String getReceiveaddr() {
        return receiveaddr;
    }

    public void setReceiveaddr(String receiveaddr) {
        this.receiveaddr = receiveaddr;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public Timestamp getCreatetime() {
        return createtime;
    }

    public void setCreatetime(Timestamp createtime) {
        this.createtime = createtime;
    }

    public Timestamp getUpdatetime() {
        return updatetime;
    }

    public void setUpdatetime(Timestamp updatetime) {
        this.updatetime = updatetime;
    }

    public String getReceivetel() {
        return receivetel;
    }

    public void setReceivetel(String receivetel) {
        this.receivetel = receivetel;
    }

    public Integer getIsdefault() {
        return isdefault;
    }

    public void setIsdefault(Integer isdefault) {
        this.isdefault = isdefault;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        ReceiveAddrEntity that = (ReceiveAddrEntity) o;
        return tid == that.tid &&
                status == that.status &&
                Objects.equals(wxid, that.wxid) &&
                Objects.equals(receiveaddr, that.receiveaddr) &&
                Objects.equals(createtime, that.createtime) &&
                Objects.equals(updatetime, that.updatetime) &&
                Objects.equals(receivetel, that.receivetel) &&
                Objects.equals(isdefault, that.isdefault);
    }

    @Override
    public int hashCode() {

        return Objects.hash(tid, wxid, receiveaddr, status, createtime, updatetime, receivetel, isdefault);
    }
}
